package org.xg.study.pd.test;

import org.xg.study.pd.Cmd;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName ApiTest14_00
 * @date 2021/9/16 14:59
 **/
public class ApiTest14_00 {
    public static void main(String[] args) {
        Cmd cmd = Cmd.parse(args);
        if (cmd.ok || cmd.helpFlag) {
            System.out.println("Usage:<main class> [-options] class [args...]");
            return;
        }
        if (cmd.versionFlag) {
            System.out.println("java version \"1.8.0\"");
            return;
        }
        startJVM(cmd);
    }

    private static void startJVM(Cmd cmd) {
        System.out.printf("classpath:%s class:%s, args:%s\n", cmd.classpath, cmd.getMainClass(), cmd.getAppArgs());
    }
}
